#include <iostream>
#include <conio.h>
#include <stdio.h>

class element
{
public:
	int wartosc;
	element * next, * prev;

	element(int w)
	{
		this->next = this->prev = NULL;
		this->wartosc = w;
	}
};

class lista
{
private:
	int count;
	element *next;
	element *last;
public:
	lista(){this->count = 0; this->last = this->next = NULL;}
	int getCount(){return this->count;}
	void setCount(int c = 0){this->count = c;}
	void add(int w = 0);
	void del();
	void delPointer(element * e);
	element * find(int value = 0);
	element * lista::getElementIfEqual(int position, int value);
	int get(){return this->last->wartosc;}
	bool isEmpty()
	{
		if(this->count == 0) return true;
		else return false;
	}
	void wypisz();
};